Skip to content

feat(i18n): extract en translations — session area#1249

Open
johnnyshields wants to merge 3 commits intodifferent-ai:devfrom
johnnyshields:i18n-conversion-2
Open

feat(i18n): extract en translations — session area#1249
johnnyshields wants to merge 3 commits intodifferent-ai:devfrom
johnnyshields:i18n-conversion-2

Conversation

@johnnyshields
Copy link
Copy Markdown
Contributor

@johnnyshields johnnyshields commented Mar 31, 2026

Summary

  • Extract hardcoded English strings to i18n keys for the session area
  • Files: composer, context-panel, inbox-panel, message-list, sidebar, workspace-session-list, status-bar, session page, share-workspace
  • ~459 new en.ts translation keys added
  • Adds params interpolation support to t() function in i18n/index.ts

What changed

  • All user-facing strings replaced with t("key") calls — including tool headline labels (Run/Reviewed/Updated/Searched), subagent status, permission prompts, toasts, placeholders
  • Uses {param} interpolation for dynamic values (counts, file names, command names)
  • Second pass caught ~132 additional strings missed by the reference extraction

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Apr 3, 2026 3:14pm

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

@johnnyshields is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@src-opn
Copy link
Copy Markdown
Collaborator

src-opn commented Apr 1, 2026

Would love to merge this, can you please rebase

@johnnyshields
Copy link
Copy Markdown
Contributor Author

@src-opn rebased -- I'll keep rebasing until all PRs are merged, as each one is quite large.

johnnyshields and others added 3 commits April 4, 2026 00:13
Extract hardcoded English strings to i18n keys for:
- composer, context-panel, inbox-panel, message-list
- sidebar, workspace-session-list, status-bar, session page
- share-workspace (session share modal logic)
- i18n/index.ts: add params interpolation support to t()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Thorough scan of all 8 session-area files for any missed strings:

- composer.tsx: attachments notices, file size errors, upload success/fail,
  paste warning, placeholder text, behavior label, remote worker hint
- context-panel.tsx: open file tooltip with path param
- inbox-panel.tsx: copy path toast, download failed fallback
- message-list.tsx: all tool headline labels (run/read/write/search/delegate),
  subagent status labels, open session button, step row label
- sidebar.tsx: remove workspace button, no sessions empty state
- workspace-session-list.tsx: workspace fallback, connecting label
- session.tsx: provider auth/connected toasts, quick actions titles,
  search conversation titles, menu label, undo/redo labels, rename modal
- share-workspace.ts: collaborator token label, desktop required placeholder,
  starting server hint, worker URL hints, owner permission hint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants